package com.baseDemo.web.dao.quartz.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.baseDemo.web.dao.quartz.QuartzEntityDao;
import com.baseDemo.web.entity.QuartzEntity;
import com.share.hibernate.baseDaoSupport.impl.BaseDaoHibernateSupport;
@Repository
public class QuartzEntityDaoHibernate extends BaseDaoHibernateSupport<QuartzEntity> implements QuartzEntityDao{

	@Override
	public Integer getPageTotal() {
		String HQL = " SELECT COUNT(id) FROM QuartzEntity as QE ";
		return this.getAgg(HQL);
	}

	@Override
	public List<QuartzEntity> findStartQuartz() {
		String HQL = "FROM QuartzEntity QE WHERE QE.status = '启动'";
		return super.find(HQL);
	}

}
